package com.fjzx.androidframe.base.annotation;

import com.fjzx.androidframe.base.activity.BaseSimpleActivity;
import com.fjzx.androidframe.base.fragment.BaseSimpleFragment;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 此注解用于标注 {@link BaseSimpleActivity} 和 {@link BaseSimpleFragment} 的布局id
 * 注解会自动获取layout并设置给页面
 * 例如：
 *
 * @author xiongyongcong
 * @ContentView(R.layout.activity_main) public class MainActivity extends BaseSimpleActivity {
 * }
 * </pre>
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ContentView {
    int value();
}
